package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import ${cfg.respClassImport};
import ${cfg.pageRespImport};
import ${cfg.respPackage}.${entity}VO;
import ${cfg.reqPackage}.${entity}QryReq;
import ${cfg.reqPackage}.${entity}AddReq;
import ${cfg.reqPackage}.${entity}UpdateReq;

import java.util.List;

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
    /**
     * 分页查询-${table.comment}
     */
    ${cfg.pageClass}<${entity}VO> pageExt(Page page, ${entity}QryReq req);

    /**
     * 非分页查询-${table.comment}
     */
    List<${entity}VO> listExt(${entity}QryReq req);

    /**
     * 通过id查询${table.comment}
     */
    ${entity}VO getByIdExt(String id);

    /**
     * 新增${table.comment}
     */
    Boolean saveExt(${entity}AddReq req);

    /**
     * 修改${table.comment}
     */
    Boolean updateByIdExt(${entity}UpdateReq req);
}
</#if>
